package com.example.zhinongbao.contract;

import com.example.zhinongbao.model.Product;
import java.util.List;

public interface HomeContract {
    interface View {
        void showProducts(List<Product> products);
        void showSearchResults(List<Product> results);
        void showError(String message);
    }

    interface Presenter {
        void loadProducts();
        void searchProducts(String query);
    }

    interface Model {
        List<Product> getAllProducts();

        void addProduct(Product product);

        List<Product> searchProducts(String query);
    }
}